using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TerritoryDesignTools._TerritorySolution
{
    /// <summary>
    /// <para>Rebuild Territory Solution</para>
    /// <para>Updates the territory solution to reflect changes made to the base level.</para>
    /// <para>更新区域解决方案以反映对基本级别所做的更改。</para>
    /// </summary>    
    [DisplayName("Rebuild Territory Solution")]
    public class RebuildTerritorySolution : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RebuildTerritorySolution()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_territory_solution">
        /// <para>Input Territory Solution</para>
        /// <para>The input territory solution.</para>
        /// <para>输入区域解决方案。</para>
        /// </param>
        public RebuildTerritorySolution(object _in_territory_solution)
        {
            this._in_territory_solution = _in_territory_solution;
        }
        public override string ToolboxName => "Territory Design Tools";

        public override string ToolName => "Rebuild Territory Solution";

        public override string CallName => "td.RebuildTerritorySolution";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_territory_solution, _out_territory_solution, _in_boundary_mask];

        /// <summary>
        /// <para>Input Territory Solution</para>
        /// <para>The input territory solution.</para>
        /// <para>输入区域解决方案。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_territory_solution { get; set; }


        /// <summary>
        /// <para>Updated Territory Solution</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Territory Solution")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_territory_solution { get; set; }


        /// <summary>
        /// <para>Boundary Mask</para>
        /// <para>The layer that is used as a mask to limit the growth of point-based layers.</para>
        /// <para>用作掩码以限制基于点的图层的增长的图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Boundary Mask")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _in_boundary_mask { get; set; } = null;


        public RebuildTerritorySolution SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}